package model

import "time"

type AdminNotice struct {
	Id        uint64     `gorm:"primaryKey;autoIncrement:false;comment:通知ID"`
	Type      uint8      `gorm:"not null;default:0;comment:类型。11 任务通知" json:"type"`
	MemberId  uint64     `gorm:"not null;default:0;comment:通知成员id;index:idx_member_id" json:"member_id"`
	Desc      string     `gorm:"type:varchar(200);not null;default:'';comment:描述" json:"desc"`
	DataId    string     `gorm:"column:data_id;type:varchar(100);not null;default:'';comment:数据id" json:"data_id"`
	CreatedAt *time.Time `gorm:"not null;default:CURRENT_TIMESTAMP;comment:创建时间;index:idx_created_at" json:"created_at"`
	ReadAt    *time.Time `gorm:"default:NULL;comment:阅读时间;index:idx_read_at;autoUpdateTime" json:"read_at"`
}
